package com.tinyseed.emcp.api.basicdata.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/***
 * @ClassName: VenterpriseDeviceStatistics
 * @Description: TODO
 * @Auther: Harlan.Xiong
 * @Date: 2019-12-25 0:20
 * @version : V1.0
 */
@Data
@Table(name = "v_enterprise_device_statistics")
@Entity()
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class VenterpriseDeviceStatistics implements Serializable {

    /**
     * 在线企业
     */
    @Id
    @GeneratedValue
    @Column(name = "online_enterprise_count")
    private Long onlineEnterpriseCount;

    /**
     * 失联企业
     */
    @Column(name = "lost_contact_enterprise_count")
    private Long lostContactEnterpriseCount;

    /**
     * 在线设备
     */
    @Column(name = "run_device_sum")
    private Long runDeviceSum;

    /**
     * 停机设备
     */
    @Column(name = "stop_device_sum")
    private Long stopDeviceSum;

    /**
     * 失联设备
     */
    @Column(name = "lost_contact_device_sum")
    private Long lostContactDeviceSum;

}
